package com.qingzhou.log.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import tk.mybatis.spring.mapper.MapperScannerConfigurer;


/***
 * @author huoming
 * @note   配置类
 * @remark 必须保证该类能被扫描到，注入spring 容器中
 */
@Configuration
@ComponentScan("com.qingzhou.log.*")
public class ApplicationConfiguration {
    @Bean
    public MapperScannerConfigurer mapperScannerConfigurer(){
        MapperScannerConfigurer mapperScannerConfigurer=new MapperScannerConfigurer();
        mapperScannerConfigurer.setBasePackage("com.qingzhou.log.dao");
        return mapperScannerConfigurer;
    }


}
